package com.scott.crm.role.dao;

import com.scott.crm.role.bean.RoleBean;
import com.scott.crm.user.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.jmx.export.annotation.ManagedOperationParameter;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * @author 黄后林
 * @version 1.0
 * @note
 * @date 2021-11-27 13:17:52
 */
@Mapper
public interface RoleDao extends BaseMapper<RoleBean> {


   List<RoleBean> findRoleListByUserId(Integer userId);

   List<RoleBean> findRoleList(@Param("begin") Integer begin, @Param("end") Integer end);

   int addRole(RoleBean roleBean);

}
